Availability |
2.0 |
Description |
Gets the attributes of the specified file or folder. |
Arguments |
fileURL |
|
The argument is the file or folder for which you want to get attributes, expressed as a file:// URL. |
Returns |
A string representing the attributes of the specified file or folder, or NULL if the file or folder does not exist. Characters in the string represent the attributes as follows: |
|
 |
R is read only. |
 |
D is folder (directory). |
 |
H is hidden. |
 |
S is system file or folder. |
|
Example |
The following code gets the attributes of the file mydata.txt and displays an alert box if the file is read only. |
 |
|